# -*- coding: utf-8 -*-
# @Time    : 2019/5/3 8:15
# @Author  : icedew
# @File    : xcache.py
# @Software: PyCharm

import memcache
cache = memcache.Client(['192.168.0.102:11211'],debug=True)

def set(key,value,timeout=60):     #过期时间60s
    return cache.set(key,value,timeout)

def get(key):
    return cache.get(key)

def delete(key):
    return cache.delete(key)